package com.ryr.webservice.config;

import com.ryr.webservice.service.WebServiceDemoService;
import com.sun.xml.internal.ws.transport.http.server.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.Endpoint;

/**
 * @author renyr
 * @version 0.1
 * @date 2021/1/21 16:09
 */
@Configuration
public class WebServiceConfig {

    @Autowired
    private WebServiceDemoService webServiceDemoService;

    @Bean
    public Endpoint getEndpoint() {
        return EndpointImpl.publish("http://localhost:8081/show",webServiceDemoService);
    }
}
